# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-bbopt
pkgver=1.1.0
pkgrel=0
pkgdesc="Black box hyperparameter optimization made easy"
url="https://github.com/evhub/bbopt"
arch="noarch !mips !mips64 !s390x" # Blocked by py3-scikit-optimize
license="Apache-2.0"
depends="python3 py3-numpy py3-matplotlib py3-portalocker py3-scikit-optimize"
makedepends="py3-setuptools"
source="https://pypi.python.org/packages/source/b/bbopt/bbopt-$pkgver.tar.gz"
options="!check" # Requires old version of py3-networkx
builddir="$srcdir/bbopt-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="3390c8abbac7ddf0ffc45962acecf7eedb5caff899edb500906447b05cb5bcf4c74341e2932b7ad3282c35698e51cc5429882cffff4106e932d8c78bec4a4f0b  bbopt-1.1.0.tar.gz"
